﻿using KAs.Application.Contract.Dto.Interface;
using Microsoft.Extensions;
using RN.User.Domain.Share;

namespace RN.User.Application.Contract.Dto;

public class UserDto : IEntityDto<long>
{
    public string OpenId { get; set; }

    public string Account { get; set; }

    public string UserName { get; set; }

    public string Avatar { get; set; }

    public int Gender { get; set; }

    public string PhoneNumber { get; set; }

    public string Email { get; set; }

    public string GenderText
    {
        get
        {
            var @enum = (GenderEnum)Gender;
            return @enum.GetDescription();
        }
    }
}
